package com.tqw.auth.dao;

import com.tqw.auth.pojo.Client;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Van
 */
@Mapper
public interface RemoteUserMapper {

    @Select("select id,username,email,phone,nickname,avatar from client where id=#{userId}")
    Client selectClientById(Long userId);

    @Select("select id,username,password from client where username=#{username}")
    Client selectUserByUsername(String username);
}
